package com.huawei.userservice.service;

import com.huawei.common.pojo.Result;
import com.huawei.common.pojo.updateMoney;
import com.huawei.userservice.pojo.dto.UserDTO;
import com.huawei.userservice.pojo.entity.User;

public interface UserService {
    User findByUsername(String username);


    String makeJWT(Long id,String username);


    Result renew(String token);

    Result logout(String token);

    Result login(String username, String password);

    Result register(String username, String password);

    Result updateUserInfo(UserDTO userDTO);

    Result deleteUser(String token);

    Result getUserInfo();

    Result updateDyId(String douyueId);

    Result updateMoney(Long id, Integer money);

    Result pay(Long setterId, Integer money);
}
